<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: /HElib/include/helib/keys.h File Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_d0c4ae63660968bf6b1c77a1e8aecf95.html">helib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">keys.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><ul>
<li>Declaration of public key </li>
</ul>
 
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;<a class="el" href="key_switching_8h_source.html">helib/keySwitching.h</a>&gt;</code><br />
</div>
<p><a href="keys_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_pub_key.html">helib::PubKey</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The public key.  <a href="classhelib_1_1_pub_key.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_sec_key.html">helib::SecKey</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The secret key.  <a href="classhelib_1_1_sec_key.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacehelib"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html">helib</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a754b89cca895affa0bbdb0f0be7cc5ac"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="keys_8h.html#a754b89cca895affa0bbdb0f0be7cc5ac">HELIB_KSS_UNKNOWN</a>&#160;&#160;&#160;(0)</td></tr>
<tr class="separator:a754b89cca895affa0bbdb0f0be7cc5ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a388919377ff3fe4f9e9e004395cdae01"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="keys_8h.html#a388919377ff3fe4f9e9e004395cdae01">HELIB_KSS_FULL</a>&#160;&#160;&#160;(1)</td></tr>
<tr class="separator:a388919377ff3fe4f9e9e004395cdae01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49964f2aac6a00561a4b0e80a73ef652"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="keys_8h.html#a49964f2aac6a00561a4b0e80a73ef652">HELIB_KSS_BSGS</a>&#160;&#160;&#160;(2)</td></tr>
<tr class="separator:a49964f2aac6a00561a4b0e80a73ef652"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a931ca5fef0ab232238fffeb9d7f5de4b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="keys_8h.html#a931ca5fef0ab232238fffeb9d7f5de4b">HELIB_KSS_MIN</a>&#160;&#160;&#160;(3)</td></tr>
<tr class="separator:a931ca5fef0ab232238fffeb9d7f5de4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3fe91feb5d65b0afc826f181557a56e4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a3fe91feb5d65b0afc826f181557a56e4">helib::writePubKeyBinary</a> (std::ostream &amp;str, const PubKey &amp;pk)</td></tr>
<tr class="separator:a3fe91feb5d65b0afc826f181557a56e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc9656603a03fba1b8720db0d2e5cee9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#adc9656603a03fba1b8720db0d2e5cee9">helib::readPubKeyBinary</a> (std::istream &amp;str, PubKey &amp;pk)</td></tr>
<tr class="separator:adc9656603a03fba1b8720db0d2e5cee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a360f4b2c5989ceac05b2f37fe89239f2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a360f4b2c5989ceac05b2f37fe89239f2">helib::writeSecKeyBinary</a> (std::ostream &amp;str, const SecKey &amp;sk)</td></tr>
<tr class="separator:a360f4b2c5989ceac05b2f37fe89239f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69b0297bb0e296d5dc39bb328d735007"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a69b0297bb0e296d5dc39bb328d735007">helib::readSecKeyBinary</a> (std::istream &amp;str, SecKey &amp;sk)</td></tr>
<tr class="separator:a69b0297bb0e296d5dc39bb328d735007"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f74d875dc046b81eef94c8f091e5c09"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a1f74d875dc046b81eef94c8f091e5c09">helib::RLWE</a> (DoubleCRT &amp;c0, DoubleCRT &amp;c1, const DoubleCRT &amp;s, long p, NTL::ZZ *prgSeed=nullptr)</td></tr>
<tr class="separator:a1f74d875dc046b81eef94c8f091e5c09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4349e62cf946950025929996328abf7c"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a4349e62cf946950025929996328abf7c">helib::RLWE1</a> (DoubleCRT &amp;c0, const DoubleCRT &amp;c1, const DoubleCRT &amp;s, long p)</td></tr>
<tr class="memdesc:a4349e62cf946950025929996328abf7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Same as RLWE, but assumes that c1 is already chosen by the caller.  <a href="namespacehelib.html#a4349e62cf946950025929996328abf7c">More...</a><br /></td></tr>
<tr class="separator:a4349e62cf946950025929996328abf7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><ul>
<li>Declaration of public key </li>
</ul>
<ul>
<li>Declaration of secret key</li>
</ul>
<p>Copyright IBM Corporation 2019 All rights reserved. </p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a49964f2aac6a00561a4b0e80a73ef652"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49964f2aac6a00561a4b0e80a73ef652">&#9670;&nbsp;</a></span>HELIB_KSS_BSGS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define HELIB_KSS_BSGS&#160;&#160;&#160;(2)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a388919377ff3fe4f9e9e004395cdae01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a388919377ff3fe4f9e9e004395cdae01">&#9670;&nbsp;</a></span>HELIB_KSS_FULL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define HELIB_KSS_FULL&#160;&#160;&#160;(1)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a931ca5fef0ab232238fffeb9d7f5de4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a931ca5fef0ab232238fffeb9d7f5de4b">&#9670;&nbsp;</a></span>HELIB_KSS_MIN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define HELIB_KSS_MIN&#160;&#160;&#160;(3)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a754b89cca895affa0bbdb0f0be7cc5ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a754b89cca895affa0bbdb0f0be7cc5ac">&#9670;&nbsp;</a></span>HELIB_KSS_UNKNOWN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define HELIB_KSS_UNKNOWN&#160;&#160;&#160;(0)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
